<template>
	<view>
	<button class="btn1"  type="warn" @click="goToExam(0)">学习模式</button>
	<button type="default" @click="goToExam(1)">考试模式</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goToExam(text) {
				uni.navigateTo({
					url:"../exam/exam?text="+text
				})
			}
		}
	}
</script>

<style>
.btn1{
	margin: 45% 0 5%;
}
</style>
